package com.xhs.miniapp.api.impl;

import com.xhs.common.error.XhsErrorException;
import com.xhs.miniapp.api.XhsMaService;
import com.xhs.miniapp.bean.XhsMaJscode2SessionResult;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class XhsMaUserServiceImpl implements XhsMaUserService {

  private final XhsMaService service;

  @Override
  public XhsMaJscode2SessionResult getSessionInfo(String jsCode) throws XhsErrorException {
    return service.jsCode2SessionInfo(jsCode);
  }

}
